<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set value="${pageContext.request.contextPath}" var="ctx"/>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
</head>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>

<!--<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">-->
<script src="js/bootstrap.js"></script>
<!--<link rel="stylesheet" href="css/gameStyle2.css" type="text/css">-->

<link href="assets/css/lib/font-awesome.min.css" rel="stylesheet" type="text/css" >
<link href="assets/css/lib/themify-icons.css" rel="stylesheet" type="text/css">
<link href="assets/css/lib/owl.carousel.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/lib/owl.theme.default.min.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/lib/weather-icons.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/lib/mmc-chat.css" rel="stylesheet" type="text/css"/>
<link href="assets/css/lib/sidebar.css" rel="stylesheet" type="text/css">
<link href="assets/css/lib/bootstrap.min.css" rel="stylesheet" type="text/css">
<link href="assets/css/lib/simdahs.css" rel="stylesheet" type="text/css">
<link href="assets/css/style.css" rel="stylesheet" type="text/css">

<title>添加商品</title>

<body >
<script>
    var msg = '${msg}'
    if(msg!=''){
    	alert(msg)
    }
</script>



<div class="sidebar sidebar-hide-to-small sidebar-shrink sidebar-gestures">
    <div class="nano">
        <div class="nano-content">
            <ul>
                <li class="label">主页</li>
                <li ><a href="admin.jsp"><i class="ti-home"></i> 控制面板 </a></li>
                <li ><a href="userList.html"><i class="ti-user"></i> 用户管理</a></li>
                <li ><a href="gameList.jsp"><i class="ti-palette"></i> 游戏管理</a></li>
                <li ><a href="comments.html"><i class="ti-pencil-alt"></i> 评论管理</a></li>
            	 <li class="active"><a href="findAllLibraryByPage"><i class="ti-user"></i> 用户游戏库管理</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="header">
    <div class="pull-left">
        <div class="logo" id="sideLogo">
            <a href="index.html">
                <img class="full-logo" src="assets/images/logo-big.png" alt="SimDahs">
                <img class="small-logo" src="assets/images/logo-small.png" alt="SimDahs">
            </a>
        </div>
        <div class="hamburger sidebar-toggle">
            <span class="ti-menu"></span>
        </div>
    </div>

    <div class="pull-right p-r-15">
        <ul>



            <li class="header-icon dib"><img class="avatar-img" src="assets/images/avatar/1.jpg" alt="" /> <span class="user-avatar">王德发 <i class="ti-angle-down f-s-10"></i></span>

            </li>
        </ul>
    </div>
</div>

<div   class="container-fluid" style="width: 80% ;margin: 0 auto 0 300px;">

    <div class="card-body" style="margin-top: 80px">
         <h1 id="h1" style="text-align: center">用户游戏库列表</h1>
        <a class='btn btn-warning btn-flat btn-addon m-b-10 m-l-5' href="showAddMessage"><i class='ti-palette'></i>增加游戏</a>
        <div class="navbar-right">
        <form class="navbar-form navbar-left" role="search" action="adminSingleFindLib" method="post">
		  <div class="form-group">
		    <input type="text" class="form-control" name="uid" placeholder="用户ID单查">
		  </div>
		  <button type="submit" class="btn btn-default">查询</button>
		</form>
		</div>
<table  class="table table-responsive table-hover"> <!-- Replace "table-1" with any of the design numbers -->
    <thead>
    <th>ID</th>
    <th>UID</th>
    <th>用户名</th>
    <th>GID</th>
    <th>游戏名</th>
    <th>修改信息</th>
    </thead>
    <tbody id="userList">
		<c:forEach items="${list}" var="lib">
			<tr>
			<td>${lib.user.id }</td>
			<td>${lib.user.uid }</td>
			<td>${lib.user.name }</td>
			<td>${lib.game.id }</td>
			<td>${lib.game.name }</td>
				<td>
					<a class='btn btn-info btn-flat btn-addon m-b-10 m-l-5' href="delGameInLibrary?uid=${lib.user.id }&gid=${lib.game.id}&currentPage="><i class='ti-close'></i>删除</a>
				</td>
			</tr>
		</c:forEach>
		
    </tbody>
</table>
    </div>
<div style="width: 200px;margin: 20px auto;">

     
</div>
</div>



</body>

<script type="text/javascript" src="assets/js/lib/jquery.min.js"></script><!-- jquery vendor -->
<script type="text/javascript" src="assets/js/lib/jquery.nanoscroller.min.js"></script><!-- nano scroller -->
<script type="text/javascript" src="assets/js/lib/sidebar.js"></script><!-- sidebar -->
<script type="text/javascript" src="assets/js/lib/bootstrap.min.js"></script><!-- bootstrap -->
<script type="text/javascript" src="assets/js/lib/mmc-common.js"></script>
<script type="text/javascript" src="assets/js/lib/mmc-chat.js"></script>
<!--  Chart js -->
<script type="text/javascript" src="assets/js/lib/chart-js/Chart.bundle.js"></script>
<script type="text/javascript" src="assets/js/lib/chart-js/chartjs-init.js"></script>
<!-- // Chart js -->


<script src="assets/js/lib/sparklinechart/jquery.sparkline.min.js"></script><!-- scripit init-->
<script src="assets/js/lib/sparklinechart/sparkline.init.js"></script><!-- scripit init-->

<!--  Datamap -->
<script src="assets/js/lib/datamap/d3.min.js"></script>
<script src="assets/js/lib/datamap/topojson.js"></script>
<script src="assets/js/lib/datamap/datamaps.world.min.js"></script>
<script src="assets/js/lib/datamap/datamap-init.js"></script>
<!-- // Datamap -->
<script src="assets/js/lib/weather/jquery.simpleWeather.min.js"></script>
<script src="assets/js/lib/weather/weather-init.js"></script>
<script src="assets/js/lib/owl-carousel/owl.carousel.min.js"></script>
<script src="assets/js/lib/owl-carousel/owl.carousel-init.js"></script>
<script src="assets/js/scripts.js"></script>
</html>